# Maintainer: André Klitzing <aklitzing@gmail.com>
# Contributor: André Klitzing <aklitzing@gmail.com>
pkgname=clazy
pkgver=1.7
pkgrel=0
pkgdesc="Qt oriented code checker based on clang framework"
url="https://github.com/KDE/clazy"
arch="all"
license="LGPL-2.0-only"
makedepends="llvm-dev clang-dev cmake"
options="!check" # cannot run tests without installation
subpackages="$pkgname-doc"
source="https://download.kde.org/stable/clazy/$pkgver/src/clazy-$pkgver.tar.xz"

build() {
	cmake -B build .\
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr
	make -C build
}

package() {
	make -C build DESTDIR="$pkgdir" install
}

sha512sums="3dba993140f3d69aac8d9cf3fa49db990185928647193220b689773bbca70f9fd9ee7fc52022e6029b3c0c81800301a593bd79edee7e1fa6c5884782d390ced6  clazy-1.7.tar.xz"
